﻿@page "/vaccineBatchRecord"
@using BootstrapBlazorApp.Shared.Models
@attribute [TabItemOption(Text = "VaccineBatchRecord")]
<PageTitle>疫苗批次档案</PageTitle>
<Button Text="添加疫苗批次" OnClickWithoutRender="@ShowDialog" />
<Divider></Divider>
<div class="table-users scroll">
    <Table TItem="VaccineBatchRecordModel" IsPagination="true" PageItemsSource="@PageItemsSource"
    RenderMode="TableRenderMode.Table"
           ShowToolbar="false" ShowExtendButtons="true" ShowSkeleton="true" IsExtendButtonsInRowHeader="false"
           IsStriped="true" IsBordered="true" UseInjectDataService="true" OnQueryAsync="OnQueryAsync" OnSaveAsync="@OnSaveAsync" OnDeleteAsync="@OnDeleteAsync">
        <TableColumns>
            <TableColumn @bind-Field="@context.Type" Width="220" />
            <TableColumn @bind-Field="@context.BatchCode" Width="220" />
             <TableColumn @bind-Field="@context.VaccineName" Items="@vaccineModels" />
            <TableColumn @bind-Field="@context.ProductionDate" Width="80" />
            <TableColumn @bind-Field="@context.ValidDate" Width="80" />
            <TableColumn @bind-Field="@context.Qty" />
        </TableColumns>
    </Table>
</div>




